package com.msb.sentinelOpenfeign.openfeign.impl;

import com.msb.common.JsonResult;
import com.msb.sentinelOpenfeign.openfeign.SentinelOpenFeignService;
import org.springframework.stereotype.Service;

/****************************************************
 * OpenFeign 容错的处理类，当调用远程接口失败或超时时，会调用对应接口的容错逻辑，
 * fallback指定的类必须实现@FeignClient标记的接口
 *
 * @author lbf
 * @date 2025/6/27 16:28
 ****************************************************/
@Service
public class SentinelOpenFeignServiceImpl implements SentinelOpenFeignService {

    @Override
    public JsonResult<String> msbSql(Long id) {
        JsonResult<String> result = new JsonResult<>();
        result.setData("服务降级处理");
        return result;
    }
}
